package vtt.android.sportnews.database;

import vtt.android.library.utils.VttLog;
import vtt.android.sportnews.BaseApplication;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class MySQLiteOpenHelper extends SQLiteOpenHelper {

	private static final String TAG = "MySQLiteOpenHelper";
	// Database Version
	private static final int DATABASE_VERSION = 1;
	// Database Name
	private static final String DATABASE_NAME = "lps.db";
	VttLog log = new VttLog(TAG, BaseApplication.isDebuggable);
	private Context mContext;

	public MySQLiteOpenHelper(Context context) {
		super(context, DATABASE_NAME, null, DATABASE_VERSION);
		mContext = context;
	}

	// Creating Tables
	@Override
	public void onCreate(SQLiteDatabase db) {
		// create database
		LpsDAO.getInstance(mContext).createCacheTable(db);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		
	}
}
